<template>
  <div class="about">
    <van-nav-bar 
      :title="title"
      fixed  
      left-arrow 
      @click-left="onClickLeft" 
    />
    <div class="content">
      <div v-html="content"></div>
    </div>
  </div>
</template>

<script>
  import { NavBar } from 'vant';
  import { mixins } from '../../common/mixins';

  export default {
    name: 'about',
    components: {
      [NavBar.name]: NavBar,
    },
    mixins: [mixins],
    data () {
      return {
        aboutName: this.$route.query.name,
        title: '',
        content: ''
      }
    },
    created () {
      this.$api.other.getAboutContent( this.aboutName , (res)=>{
        this.title = res.data[0];
        this.content = res.data[1];
      })
    },
    methods: {
    }
  }
</script>

<style lang="scss">
  .about {
    .content{
      margin-top: 46px;
      width: 100%;
      min-height: 300px;
      background-color: #fff;
      padding: 20px 4%;
      box-sizing: border-box;
      line-height: 25px;
    }
  }
</style>
